﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
using BAL;
using Common;
using System.Text;
namespace Web
{
    public partial class AdminGraduation : System.Web.UI.Page
    {
        public static Module_Page Pages = new Module_Page();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindGraduation();
            }
        }

        private void BindGraduation()
        {
            Pages.AllCount = Graduation.GetCount();
            Pages.PageSize = 10;
            Pages.PageName = GetPageName();
            Pages.Compute();
            IList<GraduationInfo> infos = Graduation.GetList();
            this.GradutionList.DataSource = infos;
            this.GradutionList.DataBind();
        }

        private string GetPageName()
        {
            StringBuilder builder = new StringBuilder();
            builder.Append("AdminGraduation.aspx?id=1");
            builder.Append("&Page=");
            return builder.ToString();
        }
    }
}
